import Vue from 'vue'
import App from './App.vue'
import Router from 'vue-router';
import Vant from 'vant';
import '../node_modules/vant/lib/index.css';
import router from './router';
import './assets/js/rem.js';

Vue.use(Router);
Vue.use(Vant);

Vue.config.productionTip = false
const originalPush = Router.prototype.push
Router.prototype.push = function push(location) {
  return originalPush.call(this, location).catch(err => err)
}

new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
